<?php
namespace console\controllers;
use backend\base\BaseService;

class SmsController extends \yii\console\Controller{

     /**
      * 发送短信
      * @return mixed
      */
     public function actionSendSms()
     {
          error_reporting(0);
         $arr = ["13003703903","13017819313","13019125533","13019129481","13026673777","13035186795","13039007833","13039324880","13041368359","13053248888","13057272196","13058952838","13069059981","13098805990","13099332809","13122119060","13135631139","13160391988","13174352099","13176892976","13177297038","13177652570","13181160333","13186519345","13188309873","13190281553","13195638680","13196058967","13207038517","13215922879","13217397296","13224303720","13227151843","13228866942","13236073115","13270677793","13275266664","13295388088","13296331616","13319309069","13328607776","13329915268","13336182572","13343483339","13351553171","13363541832","13370623995","13377117131","13385292459","13390972190","13397933615","13404359057","13404481469","13404709347","13456737391","13459903718","13464886281","13470332835","13470360422","13476525023","13479308781","13507491353","13507933128","13508677667","13508935293","13509518965","13511960037","13524988818","13527906769","13529164159","13545469955","13562386259","13562391462","13563802169","13567192742","13574864785","13575582020","13575988118","13576378370","13578750402","13583811161","13589220746","13596104243","13596418238","13600638481","13604441143","13605015188","13605639839","13607275929","13614474559","13614489201","13618234139","13618669005","13620792711","13620798762","13626281727","13626283834","13634385575","13635991978","13643004322","13644346074","13644416026","13647043756","13655665559","13655697530","13656272651","13666052754","13666680348","13674484194","13676703638","13677043453","13677046437","13685381103","13685781912","13704980146","13704987783","13706016407","13706289923","13707041633","13707299949","13733478174","13733518148","13733522697","13735063303","13735465350","13735870224","13755929715","13756033209","13756122405","13756125115","13756485243","13756523594","13756529093","13756707046","13756757461","13756915693","13771341993","13773708550","13773709506","13773857800","13773861185","13773862374","13773863616","13773867029","13774176760","13774177943","13785118563","13795006050","13795006178","13795007324","13795008057","13795019099","13795022310","13795090600","13795090904","13797112877","13797632041","13797754921","13801461763","13806330748","13807807628","13807907573","13809598861","13813770057","13813779607","13813779652","13814673986","13814675946","13814677129","13814685272","13815234470","13819137821","13821621581","13841827067","13841854872","13841863240","13841863669","13841891129","13843175798","13844093055","13844898363","13845117332","13845791326","13853830659","13853831267","13858095219","13858149683","13860007501","13861961799","13861962212","13861964877","13861995073","13862851190","13862854565","13862889719","13862961505","13863264578","13867531060","13870320011","13870394873","13870410532","13870488270","13871695927","13871934639","13879085907","13879153421","13886261855","13892531848","13894845351","13894900210","13898558289","13898561002","13901460015","13902452675","13906732658","13907625666","13912433491","13912437501","13912879333","13912890215","13912892029","13912895576","13912895897","13915386607","13915599493","13918525164","13921380499","13921661229","13921662814","13921665732","13921669677","13932199340","13941807905","13941814704","13941885350","13941888562","13944095139","13951334162","13954828450","13957130969","13960611314","13961507379","13962881428","13962889389","13962890813","13962909837","13971525662","13972068962","13972267688","13972295633","13973148082","13979300915","13991210968","13995862266","13995871976","13995892040","14779874193","15022956050","15042534808","15043059425","15044064545","15046871077","15051270858","15051292655","15051295992","15053823278","15053827080","15058189618","15065567592","15066716787","15066719129","15070385866","15070475807","15079336099","15079428676","15079539949","15084258825","15084961913","15093411523","15104432454","15104452973","15104883584","15116339996","15141825159","15143477102","15144148868","15157126617","15158132496","15162724323","15162730365","15162732275","15162736741","15162739124","15163889985","15167046944","15169809899","15172234196","15179426816","15180302091","15180340067","15180379858","15190926938","15190931439","15201409941","15206280720","15206282339","15216022339","15236851374","15243635131","15250621611","15250627196","15250632701","15250634230","15253810935","15262834490","15263073531","15265481772","15269896569","15271103216","15273110260","15301536883","15304403957","15307857611","15307943736","15325253611","15327571723","15335085370","15342517057","15356681456","15359230301","15365736850","15366389633","15370656160","15374259577","15374380775","15377643773","15382586104","15502724687","15534305333","15540542283","15543625304","15548050090","15552841839","15552858121","15563300096","15567704001","15580877755","15584444281","15611275303","15621136568","15643154803","15647090786","15651386173","15658151037","15679402958","15685191304","15697836928","15707043296","15707057230","15707069730","15710608309","15800716802","15804182256","15841819445","15843008604","15844010294","15844086051","15851230618","15851231509","15851233747","15851334714","15853280101","15856330380","15862800772","15862819629","15868943440","15879388656","15879811698","15889739361","15896221931","15896251851","15906279128","15930489596","15933635837","15941847189","15941854723","15943838951","15947809812","15948038076","15948063656","15948075084","15948334863","15948381245","15948732126","15948837775","15949266737","15951330798","15954139221","15957562861","15962884650","15966005599","15968106666","15971153088","15980316729","15985837168","15990010115","15990108023","15996502028","15996633928","17322533199","17370436580","17371053944","17564360240","17585536518","17607936598","17611236202","17671450398","17681887086","17689320442","17741825839","17743477113","17746042825","17746841165","17768443687","17778117286","17788581746","17806265860","17849265753","17854860688","17864867756","18000298600","18006966154","18008230604","18010129858","18012873148","18018428386","18020985015","18030065958","18041853608","18042300182","18042303910","18043120898","18045119864","18070493654","18158506257","18170369275","18186308590","18186872797","18204455488","18222961860","18241816462","18252884648","18253817655","18257506922","18258210729","18258264429","18258889452","18270191815","18270369618","18270371969","18275063052","18296399727","18299083515","18304189843","18326193418","18341826913","18341889944","18342829373","18353859593","18357023043","18357122644","18364816815","18365338583","18369581668","18370042539","18371066117","18378122408","18378194434","18379318069","18379382818","18407803431","18454803970","18470328116","18506570880","18512542379","18550990311","18605130948","18605883501","18613509156","18631172170","18632639387","18635439880","18637203553","18637228933","18637228974","18643068663","18650623336","18651313586","18658120808","18659080419","18662849626","18667938641","18679303337","18680086007","18703595868","18727084931","18727532351","18738231152","18740159720","18740185255","18743087411","18758098959","18762481538","18762485390","18764861735","18769832199","18770315853","18770319283","18770379872","18779361953","18779398947","18795705393","18797192988","18806819020","18813166171","18841803205","18843425514","18843468300","18847059484","18850513958","18854896681","18860014780","18862843273","18862872019","18862889751","18868801302","18868807034","18870416010","18888036647","18888272561","18905317311","18906045758","18912236510","18912433861","18936187285","18950628942","18950681706","18954758777","18965353653","18965359022","18969135556","18970476557","18972067627","18972200383","18974406549","18979350687","18993776252","18994269342","19825213085"];
         //$arr = ["15888893748"];
         foreach($arr as $val){
             $res = BaseService::sendSmsMessage($val,'sq_start');
             file_put_contents('./sms_log',json_encode($res,256)."\n",FILE_APPEND);
            var_dump($res);
         }
     }

}